const path = require('path');
const webpack = require('webpack');
const htmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
	entry: ['./examples/main.js'],
	plugins: [
		new webpack.HotModuleReplacementPlugin(),
		new htmlWebpackPlugin({
			template: './examples/index.html', //生成的新的html文件所依赖的模板
			filename: 'index.html', //生成的新的html文件的名字
		}),
	],
	module: {
		rules: [],
	},
};
